Cleanup calls to Fgarbage_collect.
authorDmitry Antipov <dmantipov@yandex.ru>
Fri, 20 Jul 2012 05:28:00 +0000 (09:28 +0400)
committerDmitry Antipov <dmantipov@yandex.ru>
Fri, 20 Jul 2012 05:28:00 +0000 (09:28 +0400)
commit22569074e51000af9239c8fefa376a58875a975d
treedffa9ed39c39f51312dbbe53a8dee064cf372270
parent4802c1a8884d836d282e2d50c916e073bb7e6fa7
Cleanup calls to Fgarbage_collect.
* lisp.h (maybe_gc): New prototype.
(consing_since_gc, gc_relative_threshold, memory_full_cons_threshold):
Remove declarations.
* alloc.c (maybe_gc): New function.
(consing_since_gc, gc_relative_threshold, memory_full_cons_threshold):
Make them static.
* bytecode.c (MAYBE_GC): Use maybe_gc.
* eval.c (eval_sub, Ffuncall): Likewise.
* keyboard.c (read_char): Likewise.  Adjust call to maybe_gc
to avoid dependency from auto-save feature.
src/ChangeLog
src/alloc.c
src/bytecode.c
src/eval.c
src/keyboard.c
src/lisp.h